/*
 * Copyright 2014 JooKar (info@jookar.nl)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.jookar.privatechat.model;

import java.util.Date;

/**
 * Represents the actual message to be send.
 * 
 * @author Joost A. Bloemsma
 */
public class Message {
    private User from;
    private User to;
    private String message;
    private Date timeStamp;

    /**
     * Constructs a new Message instance
     * @param from
     * @param to
     * @param message
     */
    public Message(User from, User to, String message) {
        super();
        this.from = from;
        this.to = to;
        this.message = message;
    }
    
    /**
     * @return the from
     */
    public User getFrom() {
        return from;
    }

    /**
     * @param from
     *            the from to set
     */
    public void setFrom(User from) {
        this.from = from;
    }

    /**
     * @return the to
     */
    public User getTo() {
        return to;
    }

    /**
     * @param to
     *            the to to set
     */
    public void setTo(User to) {
        this.to = to;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message
     *            the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the timeStamp
     */
    public Date getTimeStamp() {
        return timeStamp;
    }

    /**
     * @param timeStamp
     *            the timeStamp to set
     */
    public void setTimeStamp(Date timeStamp) {
        this.timeStamp = timeStamp;
    }

}
